import { defHttp } from '/@/utils/http/axios';

enum Api {
  Login = '/login',
  GetUserInfoById = '/getUserInfoById',
}

export function loginApi(params: any, mode = 'modal') {
  return defHttp.request(
    {
      url: Api.Login,
      method: 'POST',
      params,
    },
    {
      errorMessageMode: mode,
    }
  );
}
